{extend name="share:layout"/}
{block name="title"}验证器 - 步骤2{/block}
{block name="body"}
<style>
.a li{padding:15px;}
.a li:hover{background:#C2DFFF;}
</style>
<h2>验证器-步骤2</h2>
验证器名：{$validata_name}<br /><br />
<span style="color: red;">字段名后面的复选框为场景验证，只验证已点击字段（如果未点击，默认场景验证为全部字段）</span>
<form action="{:url('page_validata_step3')}" method="post">
<input type="hidden" name="table" value="{$Think.get.table}">
<input type="hidden" name="validata_name" value="{$validata_name}">
选择模块：
<select name="mokuai">
	<option value="">选择模块</option>
	{volist name="mokuai" id="vo"}
	<option value="{$vo}">{$vo}</option>
	{/volist}
</select>
<span style="color: red;">未选择，验证器命名默认为index</span><br /><br />
<ul class="a">
{volist name="cls" id="vo"}
	{neq name="$vo.Key" value="PRI"}
	<li title="{$vo.Comment}">	
	<h4 style="color: red;"><input type="checkbox" name="{$vo.Field}" id="{$vo.Field}"><label for="{$vo.Field}">{$vo.Field}</label></h4>
	<input type="checkbox" name="{$vo.Field}_require" id="{$vo.Field}_require"><label for="{$vo.Field}_require">必填</label>
	<input type="checkbox" name="{$vo.Field}_number" id="{$vo.Field}_number"><label for="{$vo.Field}_number">整数</label>
	<input type="checkbox" name="{$vo.Field}_float" id="{$vo.Field}_float"><label for="{$vo.Field}_float">小数</label>
	<input type="checkbox" name="{$vo.Field}_boolean" id="{$vo.Field}_boolean"><label for="{$vo.Field}_boolean">布尔</label>
	<input type="checkbox" name="{$vo.Field}_email" id="{$vo.Field}_email"><label for="{$vo.Field}_email">email</label>
	<input type="checkbox" name="{$vo.Field}_accepted" id="{$vo.Field}_accepted"><label for="{$vo.Field}_accepted">yes/no</label>
	<input type="checkbox" name="{$vo.Field}_date" id="{$vo.Field}_date"><label for="{$vo.Field}_date">日期</label>	
	<input type="checkbox" name="{$vo.Field}_alpha" id="{$vo.Field}_alpha"><label for="{$vo.Field}_alpha">字母</label>
	<input type="checkbox" name="{$vo.Field}_array" id="{$vo.Field}_array"><label for="{$vo.Field}_array">数组</label>	
	<input type="checkbox" name="{$vo.Field}_alphaNum" id="{$vo.Field}_alphaNum"><label for="{$vo.Field}_alphaNum">字母数字</label>	
	<input type="checkbox" name="{$vo.Field}_alphaDash" id="{$vo.Field}_alphaDash"><label for="{$vo.Field}_alphaDash">字母数字-_</label>	
	<input type="checkbox" name="{$vo.Field}_activeUrl" id="{$vo.Field}_activeUrl"><label for="{$vo.Field}_activeUrl">域名/ip</label>
	<input type="checkbox" name="{$vo.Field}_phone" id="{$vo.Field}_phone"><label for="{$vo.Field}_phone">电话</label>
	<input type="checkbox" name="{$vo.Field}_shen" id="{$vo.Field}_shen"><label for="{$vo.Field}_shen">身份证</label>
	<input type="checkbox" name="{$vo.Field}_url" id="{$vo.Field}_url"><label for="{$vo.Field}_url">url</label>
	<input type="checkbox" name="{$vo.Field}_ip" id="{$vo.Field}_ip"><label for="{$vo.Field}_ip">ip</label><br>
	<label for="{$vo.Field}_regex">正则：</label>
	<input type="text" name="{$vo.Field}_regex" id="{$vo.Field}_regex" style="width:120px">
	<label for="{$vo.Field}_confirm">和字段</label>
	<select name="{$vo.Field}_confirm" id="{$vo.Field}_confirm">
	<option value=""></option>
	{volist name="cls" id="vi"}	
		<option value="{$vi.Field}">{$vi.Field}</option>
	{/volist}
	</select>
	<label for="{$vo.Field}_confirm">相同</label>
	<label for="{$vo.Field}_max">最大值：</label><input type="number" name="{$vo.Field}_max" id="{$vo.Field}_max" style="width:50px">
	<label for="{$vo.Field}_min">最小值：</label><input type="number" name="{$vo.Field}_min" id="{$vo.Field}_min" style="width:50px">
	<label for="{$vo.Field}_before">时间之前：</label><input type="date" name="{$vo.Field}_before" id="{$vo.Field}_before" style="width:130px">
	<label for="{$vo.Field}_after">时间之后：</label><input type="date" name="{$vo.Field}_after" id="{$vo.Field}_after" style="width:130px">
	</li>
	验证别名:<input name="{$vo.Field}_name" /><span style="color: red;">例子：login字段，有别名（登录名）-- 登录名不能为空，无别名--login不能为空</span>
	{/neq}
{/volist}
</ul>
<br><br>
<input type="submit" value="生成代码">
</form>
{/block}